Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crave/farmblocks-button

Package Overview
Dependencies
Maintainers
4
Versions
1290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-button

Button component

  • 8.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by150%
Maintainers
4
Weekly downloads
 
Created
Source

logo-farmblocks

Farmblocks-Button

A React component for displaying buttons and actionable icons.

Design Spec

screen shot 2017-10-24 at 10 53 34 am

screen shot 2017-10-24 at 10 54 43 am screen shot 2017-10-24 at 10 55 03 am

Usage

const React = require("react");
const ReactDOM = require("react-dom");
const Button = require("@crave/farmblocks-button").default;
const { buttonTypes, buttonSizes } = require("@crave/farmblocks-button");

const root = document.createElement("div");

ReactDOM.render(
  <Button
    type={buttonTypes.NEUTRAL}
    size={buttonSizes.MEDIUM}
    text="Neutral Button"
    onClick={() => {
      console.log("button clicked");
    }}
  />,
  root
);

document.body.appendChild(root);

API

See it in the source

License

MIT

Keywords

FAQs

Package last updated on 08 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc